__author__ = 'zoulida'

import QUANTAXIS as QA
import pandas as pd

#data = QA.QA_fetch_stock_min_adv('601318', '2018-03-22', '2018-08-23', '30min')
data=QA.QAFetch.QATdx.QA_fetch_get_stock_day('601318','2017-01-01','2017-01-31')


QA.QA_util_log_info('实时价格')
data=QA.QAFetch.QATdx.QA_fetch_get_stock_realtime(['000001','000002'])


QA.QA_util_log_info('分笔成交')

#历史分笔
data=QA.QAFetch.QATdx.QA_fetch_get_stock_transaction('000001','2001-01-01','2001-01-15')
print(data)

#实时分笔(当天)
data=QA.QAFetch.QATdx.QA_fetch_get_stock_transaction_realtime('000001')
print(data)